#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <assert.h>

char* my_strcpy(char* arr1, const char* arr2)
{
	assert(arr1 && arr2);
	char* ret = arr1;
	while (*arr1 = *arr2)
	{
		arr1++;
		arr2++;
	}
	return ret;
}

int main()
{
	char arr1[20] = { 0 };
	char arr2[] = "asdfgh";
	my_strcpy(arr1,arr2);
	printf("%s", arr1);
	return 0;
}